#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT(iamorb, 1.0, BUG-REPORT-ADDRESS)
AM_INIT_AUTOMAKE(pippo, 2.6)
AC_CONFIG_SRCDIR([include/PodServerInterface.h])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# switch to compiling in cpp
AC_LANG_CPLUSPLUS


# Checks for libraries.
AC_CHECK_LIB(OgreMain,  main,[],[AC_MSG_NOTICE(OGRE library is missing[])])
AC_CHECK_LIB(CEGUIOGRE, main,[],[AC_MSG_NOTICE(CEGUI-OGRE library is missing[])])
AC_CHECK_LIB(CEGUIBase, main,[],[AC_MSG_NOTICE(CEGUI library is missing[])])
AC_CHECK_LIB(OgreNewt,  World::World,[],[AC_MSG_NOTICE(OGRENEWT library is missing[])])
AC_CHECK_LIB(Newton,    main,[],[AC_MSG_NOTICE(NEWTON library is missing[])])
AC_CHECK_LIB(OIS,       main,[],[AC_MSG_NOTICE(OIS library is missing[])])
AC_CHECK_LIB(openal,    main,[],[AC_MSG_NOTICE(OPENAL library is missing[])])
AC_CHECK_LIB(alut,      main,[],[AC_MSG_NOTICE(FREEALUT library is missing[])])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_STRUCT_TM
AC_CHECK_TYPES([ptrdiff_t])

# Checks for library functions.
AC_FUNC_SETVBUF_REVERSED
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([memmove strchr])

#AC_CONFIG_FILES([src/Makefile])
#AC_OUTPUT

#AC_OUTPUT(Makefile src/Makefile)
